package scjp.practice.assessment1;


public class Jail {

    private int x = 4;

    public static void main(String args[]) {

        // local vars can have access modifiers
        //protected int x = 6;

        // to create the inner class instance
        new Jail().new Cell().slam();
    }

    class Cell {

        void slam() {
            // inner classes have access to their enclosing class private variables.
            System.out.println("throw away key" + x);

        }
    }
}
